/**
 * controller: person
 *
 * @author    Dmitry Ustimov
 * @date      March 2012
 *
 */
package com.gr

import java.util.Date;

import grails.converters.JSON

class PersonController {
	def PersonService

	def getlist = {
		render PersonService.getlist(params) as JSON
	}
	
	def getElement = {
		render PersonService.getElement(params) as JSON
	}
	
	def addElement = {
		render PersonService.addElement(params) as JSON
	}
	
	def editElement = {
		render PersonService.editElement(params) as JSON
	}
	
	def deleteElement = {
		render PersonService.deleteElement(params) as JSON
	}

}